﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccess;

namespace BusinessLogic
{
  public   class CustomerBL
    {
      CustomerDA cusD = new CustomerDA();

      public DataTable Diplay(CardEntites card)
      {
          return CustomerDA.GetName(card);
      }

      public DataTable DiplayAccountReceive(AccountEntites a)
      {
          return CustomerDA.GetNameReceive(a);
      }
      public void Transfer(AccountEntites a)
      {
          cusD.Transfer(a);
      }
      public void TransferReceive(AccountEntites a)
      {
          cusD.TransferAccountReceive(a);
      }
      public decimal checkBalance(CardEntites card)
      {
          decimal x = cusD.checkBalance(card);
          return x;
      }

      // dương
      public DataTable ViewHistory_OneWeek(string cardNo)
      {
          return CustomerDA.ViewHistory_OneWeek(cardNo);
      }
      public DataTable ViewHistory_OneMonth(string cardNo)
      {
          return CustomerDA.ViewHistory_OneMonth(cardNo);
      }
      public DataTable ViewHistory_FourMonth(string cardNo)
      {
          return CustomerDA.ViewHistory_FourMonth(cardNo);
      }
      public DataTable ViewHistory_SixMonth(string cardNo)
      {
          return CustomerDA.ViewHistory_SixMonth(cardNo);
      }
      public DataTable ViewHistory_OneYear(string cardNo)
      {
          return CustomerDA.ViewHistory_OneYear(cardNo);
      }
      public DataTable ViewHistory_TwoYear(string cardNo)
      {
          return CustomerDA.ViewHistory_TwoYear(cardNo);
      }

    }
}
